﻿using System.Windows.Controls;

namespace MyFloridaHouse.SilverlightOpenDistricts
{
    public partial class MainPage : UserControl
    {
        private xDistrictNonContiguous districtNonContiguousDlg = new xDistrictNonContiguous();

        //private xFileOpen fileOpenChildWindow = new xFileOpen();

        //private xFileNew fileNewChildWindow = new xFileNew();
        //private xFileSaveAs fileSaveAsChildWindow = new xFileSaveAs();
        private xFilePrint filePrintChildWindow = new xFilePrint();
        private xConfigurationManagement configWindow = new xConfigurationManagement();
        private xHelpAbout helpAboutWindow = new xHelpAbout();
        private xPrintMap printMapChildWindow = new xPrintMap();
        private xFind findPopUp = new xFind();

        private void InitializeDiaglogs()
        {
            //ChildwindowStackpanel.Children.Add(fileNewChildWindow);
            //ChildwindowStackpanel.Children.Add(fileSaveAsChildWindow);

            ChildwindowStackpanel.Children.Add(filePrintChildWindow);
            ChildwindowStackpanel.Children.Add(printMapChildWindow);
            ChildwindowStackpanel.Children.Add(configWindow);
            ChildwindowStackpanel.Children.Add(helpAboutWindow);
        }
        
        private void InitializeDiaglogDataContext()
        {
            //fileNewChildWindow.DataContext = viewModelBase;
            //fileSaveAsChildWindow.DataContext = viewModelBase;
            filePrintChildWindow.DataContext = viewModelBase;
            printMapChildWindow.DataContext = viewModelBase;
            configWindow.DataContext = viewModelBase;
            helpAboutWindow.DataContext = viewModelBase;
        }
    }
}
